/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-17 17:42:07
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-17 18:06:18
 */
import 'package:flutter/material.dart';
import 'package:flutter_data_center/controller/wristband_controller.dart';
import 'package:get/get.dart';

class WristbandCount extends StatelessWidget {
  const WristbandCount({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) => GetBuilder<WristbandController>(
        builder: (_controller) => Center(
          child: Container(
            width: 200,
            height: 200,
            decoration: BoxDecoration(
              image: DecorationImage(
                image: AssetImage("assets/images/border.png"),
              ),
            ),
            child: Center(
              child: Text(
                "${_controller.total}",
                style: TextStyle(
                  fontSize: 36,
                  fontWeight: FontWeight.w700,
                ),
              ),
            ),
          ),
        ),
      );
}
